package com.Annotation2;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE,ElementType.METHOD})
@interface Action {
    public String title()  default "aaa";
    public String value();
}

@Action(title = "1111",value = "8888")
public class Message1 {
    @Action("bbb")
    public String echo(String msg) {
        return "msg------";
    }
}
